package javango.api;

import java.util.ArrayList;
import java.util.List;


public class Urls {

    private List<Url> urls;
    
	/**
	 * Return a list of {@link Url} objects representing the urls for this application
	 * @return
	 */
    final public List<Url> getUrlPatterns() {
        return urls;
    }
    
    final public void setUrlPatterns(Url ...urlArray) {
        if (urls != null) {
            throw new IllegalStateException("urls already initialized - cannot be called twice");
        }
        urls = new ArrayList<Url>();
        for (Url url : urlArray) {
            urls.add(url);
        }
    }
}
